<script>
import DDescriptionsItem from './DDescriptionsItem.vue';

export default {
  name: 'DDescriptions',
  components: {
    DDescriptionsItem
  },
  props: {
    title: {
      type: String
    },
    bordered: {
      type: Boolean,
      default: false
    },
    column: {
      type: Number,
      default: 3
    }
  },
  render() {
    const props = {
      bordered: this.bordered
    };
    if (this.title) {
      props.title = this.title;
    }
    if (this.column) {
      props.column = this.column;
    }
    return <a-descriptions props={props}>{this.$slots.default}</a-descriptions>;
  }
};
</script>

<style lang="scss" scoped></style>
